Platform Explorer / Nuxeo Platform 5.8

Extension point directories

Documentation

This extension point can be used to register new multi-directories. The extension can contain any number of directories declarations of the form:

        ...
        <directory name="userDirectory">
        <schema>user</schema>
        <idField>username</idField>
        <passwordField>password</passwordField>
        <querySizeLimit>1000</querySizeLimit>
        <source name="ldapusers">
            <subDirectory name="authinfo">
                <field for="email">mail</field>
            </subDirectory>
            <subDirectory name="userinfo">
                <field for="firstName">givenName</field>
                <field for="lastName">sn</field>
                <field for="company">o</field>
            </subDirectory>
        </source>
        <source creation="true" name="sqlusers">
            <subDirectory name="sqlUserDirectory"/>
        </source>
    </directory>
        ...

Here is the description for each field:

  • schema - the name of the schema to be used for the directory entries.
  • idField - the id field designs the primary key in the table, used for retrieving entries by id.
  • querySizeLimit - the maximum number of results that the queries on this directory should return; if there are more results than this, an exception will be raised.
  • init-dependencies - a list of directories that should be initialized before this one

The references tag is used to define relations between directories. (TODO: describe the references types.)

Contribution Descriptors

  • Class: org.nuxeo.ecm.directory.multi.MultiDirectoryDescriptor
  • Class: org.nuxeo.ecm.directory.multi.SourceDescriptor
  • Class: org.nuxeo.ecm.directory.multi.SubDirectoryDescriptor
  • Class: org.nuxeo.ecm.directory.multi.FieldDescriptor

Contributions

No known contributions.